package xml.parse;
import java.io.InputStream;
import java.util.List;

import junit.framework.TestCase;


public class Output extends TestCase{

	public void testSAX() throws Throwable{
		Parse sax = new Parse();
		InputStream input = this.getClass().getClassLoader().getResourceAsStream("book.xml");
		List<Librium> libriums = sax.getBooks(input);
		for(Librium librium : libriums){
			System.out.println(librium.toString());
		}
	}
	public static void main(String args[]) throws Throwable {
		Output obj=new Output();
		obj.testSAX();
		
		

		
		
	}

	
	
	
}